gusucode.com > ASP+ACCESS在线手机销售系统(论文+源代码+答辩PPT) > ASP+ACCESS在线手机销售系统(论文+源代码+答辩PPT)\9)ASP 在线手机销售系统\HandsetPro\handset\admin\Include\pageguide.asp

    <script language = "JavaScript">
	function jumpTo(i){
	if(i == 1){
		this.document.location = "<%=thisUrl%>";}
	if(i == 2){
		this.document.location = "<%=thisUrl%>&page=<%=page-1%>";}
	if(i == 3){
		this.document.location = "<%=thisUrl%>&page=<%=page+1%>";}
	if(i == 4){
		this.document.location = "<%=thisUrl%>&page=<%=rsObj.pageCount%>";}
	}
</script>        
        
<table id = pageguide cellpadding = 0 cellspacing = 0 border = 0 width = 100%>
<tr>
<%	
	if bShowAdd then 
%>
  <td width = "12%"> 
    <input type = "button" name = "Submit" value = "添加" onClick = "window.location = '<%=sAddPage%>';" ID = "Button1">
  </td>
<%
	end if
%>
 
  <td> 
    <div align = "right"><%=rsObj.recordCount%>项,第<%=page%>/<%=rsObj.pageCount%> 页  
      <%if page>1 then%>
      <input type = "button" name = "Submit3" value = "首页" onClick = "Javascript:jumpTo(1)" ID = "Button2">
      <input type = "submit" name = "Submit4" value = "上页" onClick = "Javascript:jumpTo(2)" ID = "Submit1">
      <%else%>
      <input type = "button" name = "Submit3" value = "首页" disabled ID = "Button3">
      <input type = "submit" name = "Submit4" value = "上页" disabled ID = "Submit2">
      <%end if
if rsObj.recordCount>page*conMaxPerPage then%>
      <input type = "submit" name = "Submit5" value = "下页" onClick = "Javascript:jumpTo(3)" ID = "Submit3">
      <input type = "submit" name = "Submit6" value = "末页" onClick = "Javascript:jumpTo(4)" ID = "Submit4">
      <%else%>
      <input type = "submit" name = "Submit5" value = "下页" disabled ID = "Submit5">
      <input type = "submit" name = "Submit6" value = "末页" disabled ID = "Submit6">
      <%end if%>
    </div>
  </td>
</tr>
</table>